package com.ruoyi.share.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 分账比例对象 share_goods_ratio
 *
 * @author ruoyi
 * @date 2021-11-16
 */
public class ShareGoodsRatio extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品分账比例id */
    private Long id;

    /** 商品id */
    @Excel(name = "商品id")
    private Long goodsId;

    /** 商户id */
    @Excel(name = "商户id")
    private Long commercialTenantId;

    /** 比例 */
    @Excel(name = "比例")
    private BigDecimal ratio;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setGoodsId(Long goodsId)
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId()
    {
        return goodsId;
    }
    public void setCommercialTenantId(Long commercialTenantId)
    {
        this.commercialTenantId = commercialTenantId;
    }

    public Long getCommercialTenantId()
    {
        return commercialTenantId;
    }
    public void setRatio(BigDecimal ratio)
    {
        this.ratio = ratio;
    }

    public BigDecimal getRatio()
    {
        return ratio;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("goodsId", getGoodsId())
            .append("commercialTenantId", getCommercialTenantId())
            .append("ratio", getRatio())
            .toString();
    }
}
